package com.ruoyi.resume.domain.model.match;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 该实体用于存储标签匹配后的得分情况
 * @author 田成强
 * 20250303
 * */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ResumeMatch implements Comparable<ResumeMatch>{
    //1.简历id
    private Integer resumeId;

    //2.得分情况(可能修改)
    private Double score;

    //3.拓展字段....
    @Override
    public int compareTo(ResumeMatch other) {
        return Double.compare(this.score, other.score); // 按照 score 升序排序
    }
}
